inputSize=input("")
inputArray=[]

for i in range(0,int(inputSize)):
    inputArray.append(int(input("")))
    print('input',i)

array2=[]
for i in inputArray:
    has=False
    for j in array2:
        if i==j:
            has=True
            break
    if has is False:
        array2.append(i)
print('inputlength=====',len(inputArray))
for i in range(0,len(array2)):
    for j in range(i+1,len(array2)):
        if(array2[j]<array2[i]):
            tmp=array2[i]
            array2[i]=array2[j]
            array2[j]=tmp
for i in array2:
    print(i)
